package com.diet.system.domain;

import com.diet.common.annotation.Excel;
import com.diet.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 食材对象 ingredient
 */
public class Ingredient extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 食材ID */
    private Long ingredientId;

    /** 食材名称 */
    @Excel(name = "食材名称")
    private String ingredientName;

    /** 类别 */
    @Excel(name = "类别")
    private String category;

    /** 可食部分(%) */
    @Excel(name = "可食部分")
    private Double ediblePortion;

    /** 热量(kcal/100g) */
    @Excel(name = "热量")
    private Double calories;

    /** 蛋白质(g/100g) */
    @Excel(name = "蛋白质")
    private Double protein;

    /** 脂肪(g/100g) */
    @Excel(name = "脂肪")
    private Double fat;

    /** 碳水化合物(g/100g) */
    @Excel(name = "碳水化合物")
    private Double carbohydrate;

    public void setIngredientId(Long ingredientId) 
    {
        this.ingredientId = ingredientId;
    }

    public Long getIngredientId() 
    {
        return ingredientId;
    }

    public void setIngredientName(String ingredientName) 
    {
        this.ingredientName = ingredientName;
    }

    public String getIngredientName() 
    {
        return ingredientName;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setEdiblePortion(Double ediblePortion) 
    {
        this.ediblePortion = ediblePortion;
    }

    public Double getEdiblePortion() 
    {
        return ediblePortion;
    }

    public void setCalories(Double calories) 
    {
        this.calories = calories;
    }

    public Double getCalories() 
    {
        return calories;
    }

    public void setProtein(Double protein) 
    {
        this.protein = protein;
    }

    public Double getProtein() 
    {
        return protein;
    }

    public void setFat(Double fat) 
    {
        this.fat = fat;
    }

    public Double getFat() 
    {
        return fat;
    }

    public void setCarbohydrate(Double carbohydrate) 
    {
        this.carbohydrate = carbohydrate;
    }

    public Double getCarbohydrate() 
    {
        return carbohydrate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ingredientId", getIngredientId())
            .append("ingredientName", getIngredientName())
            .append("category", getCategory())
            .append("ediblePortion", getEdiblePortion())
            .append("calories", getCalories())
            .append("protein", getProtein())
            .append("fat", getFat())
            .append("carbohydrate", getCarbohydrate())
            .append("createTime", getCreateTime())
            .toString();
    }
}